//
//  CinemaListViewController.m
//  UI-豆瓣项目APP
//
//  Created by dllo on 15/9/8.
//  Copyright (c) 2015年 孙鹏. All rights reserved.
//

#import "CinemaListViewController.h"
#import "CinemaListTableViewCell.h"
#import "AppTools.h"
@interface CinemaListViewController ()<UITableViewDataSource,UITableViewDelegate>

@end

@implementation CinemaListViewController

- (void)viewDidLoad {
    
    [super viewDidLoad];
    
    
  
    
    
    
    
    
    
    
    self.navigationItem.title = @"影院";
    self.view.backgroundColor = [UIColor whiteColor];
    
    
    self.cinemaTableView = [[UITableView alloc]initWithFrame:[[UIScreen mainScreen]bounds] style:UITableViewStylePlain];
    
    self.cinemaTableView.delegate = self;
    self.cinemaTableView.dataSource = self;
    [self.view addSubview:self.cinemaTableView];
    [_cinemaTableView release];
    
    [self.cinemaTableView registerClass:[CinemaListTableViewCell class] forCellReuseIdentifier:@"cell"];
    
    
    
    // Do any additional setup after loading the view.
}

-(CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath
{
    
    return 135;
    
    
}

- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section
{
    
    return 4;
    
}


- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
    
    static NSString *cellidentfier = @"cell";
    CinemaListTableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:cellidentfier];
    
    return cell;
    
}


- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
